{"id":36467227,"url":"https://github.com/sciensoft/fluenttests","last_synced_at":"2026-01-15T02:32:03.066Z","repository":{"id":152557884,"uuid":"617637886","full_name":"sciensoft/fluenttests","owner":"sciensoft","description":"A Golang test library to increase productivity by providing helpful methods for you to write TDD and BDD-style tests using a fluent language, allowing you to easily organize your tests following the Arrange, Act, and Assert pattern. Plus, several assertions methods for types, contracts, strings, integers, floats, and more to speed up your SDLC.","archived":false,"fork":false,"pushed_at":"2024-04-03T07:18:50.000Z","size":90,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-12T02:01:42.473Z","etag":null,"topics":["assertions","go","golang","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sciensoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-03-22T19:54:12.000Z","updated_at":"2024-07-03T13:00:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"14992cc0-9f9a-45cc-b4f3-4015bfb21764","html_url":"https://github.com/sciensoft/fluenttests","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sciensoft/fluenttests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciensoft%2Ffluenttests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciensoft%2Ffluenttests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciensoft%2Ffluenttests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciensoft%2Ffluenttests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sciensoft","download_url":"https://codeload.github.com/sciensoft/fluenttests/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sciensoft%2Ffluenttests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28441315,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-15T00:55:22.719Z","status":"online","status_checked_at":"2026-01-15T02:00:08.019Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","go","golang","testing"],"created_at":"2026-01-12T00:06:19.094Z","updated_at":"2026-01-15T02:32:03.059Z","avatar_url":"https://github.com/sciensoft.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fluent Tests\r\n\r\nA Golang test library to increase productivity by providing easy-to-use methods for you to write TDD and BDD-style tests using a fluent language, allowing you to easily organize your tests following the Arrange, Act, and Assert pattern. Plus, several assertion methods for types, contracts, strings, integers, floats, and much more to speed up your SDLC.\r\n\r\n**📢 Hear ye, hear ye!** Contributors always welcomed. If you want to get involved and help me write this testing tool for our peers Gophers, please ping me on the [fluenttests Discord] channel.\r\n\r\n## Get Started\r\n\r\n```bash\r\ngo get github.com/sciensoft/fluenttests\r\n```\r\n\r\n### Usage\r\n\r\n```go\r\nfunc TestFluentContractsShouldHaveMember(t *testing.T) {\r\n    // Arrange\r\n    fluent := contracts.Fluent[any](t)\r\n    contractType := reflect.TypeOf(struct { Name string }{})\r\n    fieldType := reflect.TypeOf(\"\")\r\n    \r\n    // Act\r\n    author := repository.RetrieveAuthorById(1) // Returns: struct { Name string }{}\r\n\r\n    // Assert\r\n    fluent.It(author).\r\n        Should().BeOfType(contractType).\r\n        And().HaveField(\"Name\").OfType(fieldType).WithValue(\"Benjamin Treynor\")\r\n}\r\n```\r\n\r\nFor more samples, please visit [the tests] written to test this own library.\r\n\r\n## Features\r\n\r\n- Assertions to validate\r\n  - Types,\r\n  - Strings,\r\n  - Integers,\r\n  - and Floats\r\n- Assertions to validate Structs, Interfaces/Objects contracts\r\n\r\n### Roadmap\r\n\r\n- Support to `complex64`, and `complex128` types\r\n- Add support to `reflect.Kind` for the testing methods `.BeOfType()`, and `.OfType()`\r\n- Add more auxiliary methods for structs, interfaces, strings, floats, and integers\r\n- Add support asynchronous tests\r\n- Add support for panic testing\r\n\r\n## Contributions\r\n\r\nBefore start contributing, check our [CONTRIBUTING] guidelines out. Also, before making any significant change, look at the existing Issues and Pull Requests. One of them may be tackling the same thing.\r\n\r\n## Issues\r\n\r\nPlease use the [Issues] tab to open an issue or suggest a new feature.\r\n\r\n## License\r\n\r\nCopyright 2023 Sciensoft\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\r\n\r\n[CONTRIBUTING]: ./CONTRIBUTING.md\r\n[Issues]: ./../../../issues\r\n[the tests]: ./test\r\n[fluenttests Discord]: https://discord.com/channels/1005225996162707476/1206883413814939678\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciensoft%2Ffluenttests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsciensoft%2Ffluenttests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsciensoft%2Ffluenttests/lists"}