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

Add anonymous posting automated tests #48

Merged
merged 2 commits into from
Oct 20, 2024

Conversation

mohamed-elzeni
Copy link
Member

@mohamed-elzeni mohamed-elzeni commented Oct 20, 2024

This adds automated tests for the feature of posting anonymously.

The tests are testing the cases where a post is created successfully when a isAnonymous attribute is added. In addition, the tests ensure that the uid of such created posts are 0, ensuring the anonymity of the author and that their uid was never saved in the database.

This completes testing for User Story 4 and resolves #49.

@mohamed-elzeni mohamed-elzeni added the Test This tests features that were implemented label Oct 20, 2024
@mohamed-elzeni mohamed-elzeni added this to the Sprint 2 milestone Oct 20, 2024
@mohamed-elzeni mohamed-elzeni self-assigned this Oct 20, 2024
@mohamed-elzeni mohamed-elzeni linked an issue Oct 20, 2024 that may be closed by this pull request
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11428194227

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage remained the same at 82.682%

Files with Coverage Reduction New Missed Lines %
src/socket.io/topics.js 1 89.92%
Totals Coverage Status
Change from base Build 11057241668: 0.0%
Covered Lines: 22353
Relevant Lines: 25615

💛 - Coveralls

@mohamed-elzeni mohamed-elzeni requested review from aattiyah and tatougueye and removed request for aattiyah and tatougueye October 20, 2024 17:23
Copy link

@tatougueye tatougueye left a comment

Choose a reason for hiding this comment

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

The testcases looks good to me!

@mohamed-elzeni mohamed-elzeni merged commit f70f4ea into f24 Oct 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Test This tests features that were implemented
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add automated tests for posting anonymously
3 participants