question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Re-work test setup for e2e tests

See original GitHub issue

While working on the api-derive tests I noticed that the test setup in API could urgently need some attention. Now that we’re more people working on it who don’t necessarily know the whole code by heart (including external contributors) we should put more effort in making the tests more bulletproof and the setup more intuitive.

Suggested tasks:

Already existing tickets:

  • #329 Convert all tests to TypeScript
  • #868 Add tests for api-derive methods

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
amaurymcommented, Jul 1, 2019

Or instead of having a central file which imports all other files to have a central .skip, we could do what YJ proposed here: https://github.com/polkadot-js/api/pull/1059/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R23

2reactions
amaurymcommented, Jun 19, 2019

Have a central file where all local tests are imported to be able to toggle all tests that require a local dev node

Related to this: I would propose to put all e2e tests into api/, because when testing e2e, we should test what users use, namely const api = new Api(). This includes:

  • rpc-core: replace those tests with api.rpc.*.*() tests, so that’s it’s really e2e
  • api-derive: they test the decorated api.derive.*.*, so they are already e2e tests on api itself
  • type-extrinsics: there are some tests hanging there, move them to api.tx.*.* tests
Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Practices for Creating End-to-End Tests - Datadog
Best practices for creating end-to-end tests · Define your test coverage · Build meaningful tests for key application workflows · Design coherent ...
Read more >
E2E Testing: A Tutorial and Architectural Guide - Testim Blog
E2E testing helps you with both front-end and back-end testing to validate the most important flows in your app. Read this to learn...
Read more >
Running E2E tests on EAS Build - Expo Documentation
Learn how to set up and run E2E tests on EAS Build with popular libraries such as Detox.
Read more >
A Comprehensive Guide to End to End (E2E) Testing - Perfecto
Check out this guide to end to end (E2E) testing. Learn what end to end tests are, how they work, and see an...
Read more >
End-to-end Tests And Testing - Your Complete Guide 2022
End-to-end testing is a software testing method that provides complete test coverage from beginning to end. Also called E2E testing, the goal is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found