Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Move unit testing to Gingko [DEV-1652] #373

Merged
merged 81 commits into from
Oct 20, 2022
Merged

test: Move unit testing to Gingko [DEV-1652] #373

merged 81 commits into from
Oct 20, 2022

Conversation

lampkin-diet
Copy link
Contributor

No description provided.

@ankurdotb
Copy link
Contributor

Task linked: DEV-1652 cheqd-node tests refactoring

@drgomesp
Copy link
Contributor

Nice work, I like Gingko as well! BTW, did you guys know or had a chance to look at GoConvey? It's a very interesting alternative for more behavioral-oriented testing. Could be interesting to have a look and see if it could potentially help us in the direction we are aiming for.

Well done!

@ankurdotb ankurdotb changed the title refactor(tests): Move to ginkgo test: Move unit testing to Gingko Aug 17, 2022
@drgomesp
Copy link
Contributor

drgomesp commented Sep 1, 2022

All changes are structural and related to the introduction of Gingko as a supporting library for testing. However, in practical terms, I can't see too many changes or improvements in regards to the quality of test scenarios in general towards a more realistic and behavioral-driven approach.

I'm suggesting that we either merge or close this, since it will have an impact going forward on what library we will utilize, and I personally believe that there could be better alternatives to Gingko, like GoConvey, which could give us more behavioral-driven tests.

I'm keen on hearing others opinions on the matter as well, and if we can take a decision here without having to wait for @ankurdotb that would be better, otherwise this PR could get really behind and the code may rot.

@drgomesp drgomesp force-pushed the DEV-1652 branch 16 times, most recently from 377b9c0 to 5b827b3 Compare September 14, 2022 18:15
Comment on lines +9 to +10
var _ = Describe("DID-URL tests", func() {
DescribeTable("Check the DID-URL join functionality (without functionality)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be follow-up ticket

})
When("verification method with expected multibase key", func() {
It("is valid", func() {
struct_ = VerificationMethod{
Id: "did:cheqd:aaaaaaaaaaaaaaaa#qwe",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Earlier we set allowedNamespaces = []string{} which means we allow any namespaces including empty one. Agreed, let's add a test case where we expect certain namespace value.

@askolesov askolesov merged commit fcc6991 into develop Oct 20, 2022
@askolesov askolesov deleted the DEV-1652 branch October 20, 2022 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants