Comments (2)
I've started to think about how to remove the test fixtures from ex_doc
. I could use some guidance on the best way to proceed. It's easy enough to put all the test fixtures into test_helper.exs
, though I'm not sure that's much of a win in terms of understandability. I could move individual modules into the specific test files (or even into the test functions in some cases), though I think there would be a fair amount of repeated code in those cases.
Any high-level guidance on which of these approaches makes more sense?
We will still need a small number of test fixtures to test the file and directory reading code (unless there is some advantage to auto-generating those as well).
from ex_doc.
@jwarwick I think we should have a mixture of both approaches. Some fixtures could be used throughout the whole codebase and therefore should be defined in test_helper.exs
but some other fixtures could be define in modules or, as you said, even in particular tests since one of the goals is to decouple the tests.
This is actually the general approach for using fixtures: a minimum global set of fixtures with variations being defined specifically for each test. :)
from ex_doc.
Related Issues (20)
- Add syntax highlighting for JavaScript/TypeScript HOT 3
- links for otp apps' (gen_tcp/ssl) types use old format HOT 4
- Bullet list not displayed correctly HOT 4
- Better integrate Erlang/Elixir
- Mobile: Search bar is too sensitive to page scroll HOT 2
- Warn about docs for out-of-date versions HOT 1
- Odd Gradient with mobile breakpoint in light mode HOT 1
- feature request: Link to Anchor callback/function auto-links like with Modules and Extra pages
- Possible error when deprecating binaries path for assets HOT 4
- Failure to render links for specs when using Elixir 1.17 or later HOT 1
- No support for debug_info keys? HOT 1
- Search page shows no results even though autocomplete finds them HOT 1
- Signs in integer literals trigger warning HOT 3
- More explicit warning when type not visible because module is not visible HOT 2
- Fail to generate docs due to earmark_parser_string_lexer not available HOT 2
- Remove support for application/erlang+html HOT 4
- Screen reader text obscures search HOT 10
- No information on how to run locally HOT 2
- Admonition blockquotes should be converted to divs HOT 1
- Sidebar missing until mermaidjs finishes loading HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ex_doc.