You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing for each of the adapters was added when created but each is entirely commented out. Of the 39 tests that run on behalf of the current jest config, only the client.test.ts file contains any real testing. All of the testing files have moved to the test folder and out of the src folder.
The test/src folder should be the unit tests that cover the ts file. There is an e2e folder in there as well, which
We're not aiming for 100% coverage. I think, for each of the adapter methods we should have tests covering the required params to complete the request and the responses provided by the method.
Reports are to be added to this ticket as testing progresses towards the BikeTag v2.0 release.
The text was updated successfully, but these errors were encountered:
So, since this project was built on top of the node-imgur package's next branch, the tests are still those that were written for the imgur API. I left the tests in there to learn from the pattern employed. You'll see that the files in this folder don't match up with the BikeTag API: https://github.com/KenEucker/biketag-api/tree/production/test/mocks/handlers
Those will need to be renamed/rewritten as the methods of the BikeTagClient class and should include tests for each adapter's implemented method. Those methods are:
As of 1.11.0, the biketag api will throw an error if an invoked method is not implemented for a given client adapter. Because of these errors, we can add tests for each unimplemented method, and then tests will fail as those methods become implemented (requiring more testing). Error reporting in failed tests that verify a method is not implemented should state that "new tests need to be written to replace this now invalid test".
Testing for each of the adapters was added when created but each is entirely commented out. Of the 39 tests that run on behalf of the current jest config, only the client.test.ts file contains any real testing. All of the testing files have moved to the test folder and out of the src folder.
The test/src folder should be the unit tests that cover the ts file. There is an e2e folder in there as well, which
We're not aiming for 100% coverage. I think, for each of the adapter methods we should have tests covering the required params to complete the request and the responses provided by the method.
Reports are to be added to this ticket as testing progresses towards the BikeTag v2.0 release.
The text was updated successfully, but these errors were encountered: