Microservices Projects tests don't work
See original GitHub issueThe tests for projects are not working anymore. Campers can submit any random URL to pass their challenges. This bug turns off people from Freecodecamp, cause you never know if you accomplished a challenge or not.
Here is a discussion of this problem on FreeCodeCamp forum https://www.freecodecamp.org/forum/t/timestamp-microservice-how-to-test-that-api/290578/10
As I can see there were tests
tests:
- text: 'It should handle a valid date, and return the correct unix timestamp'
testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/timestamp/2016-12-25'').then(data => { assert.equal(data.unix, 1482624000000, ''Should be a valid unix timestamp''); }, xhr => { throw new Error(xhr.responseText); })'
- text: 'It should handle a valid date, and return the correct UTC string'
testString: 'getUserInput => $.get(getUserInput(''url'')+ ''/api/timestamp/2016-12-25'').then(data => { assert.equal(data.utc, ''Sun, 25 Dec 2016 00:00:00 GMT'', ''Should be a valid UTC date string''); }, xhr => { throw new Error(xhr.responseText); })'
But they are not working.
This is the same for all Microservices Projects.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Seven Ways to Fail at Microservices - InfoQ
Microservices are a means, not a goal; Being distributed does not guarantee being decoupled; Contract tests are an important part of any ...
Read more >Microservices Architecture and its Testing Challenges
With these testing challenges, everything cannot be tested in a Microservices setup. We have to take a pragmatic risk-based approach to test the ......
Read more >Microservices test architecture. Can you sleep well without ...
Some projects have no modern development environment set up, so there are only unit tests for things that are easy to test.
Read more >Testing Microservices: Principles, Challenges, Case Studies
How to test microservices properly? QA engineers explain why traditional testing not always works properly, and tell about known challenges ...
Read more >When Microservices Are a Bad Idea - Semaphore CI
You shouldn't start a new project with microservices, even if you're ... in tests that were difficult to write, and very slow to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

kkkk
Closing in favor of the above issue (#37185).