Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
Best practices
0 votes
1 replies
69 views

I’m currently working on a personal Android project using Kotlin and Android Studio, following a basic MVVM architecture: ─main │ ├───java │ │ └───com │ │ └───example │ │ └───...
1 vote
1 answer
124 views

Sometimes when I develop by TDD (Test Driven Development) I need to test the calling order of some class methods. In general I write Python code so I'll show the last test case that I have just ...
0 votes
2 answers
76 views

I'm encountering a recurring challenge when using TDD to develop code that must perform actions in a specific order. Usually I'm able to write tests such that it is only possible to create a correct ...
Bart's user avatar
  • 1,701
0 votes
1 answer
44 views

I'm currently developing a mobile app for booking overnight accommodations in React Native. I'm currently developing the "book accommodation" functionality and I'm running into a design ...
3 votes
2 answers
10k views

Directory Structure project-root/ ├── src/ │ ├── file1.py │ ├── file2.py └── tests/ │ ├── test_file1.py │ ├── test_file2.py ├── requirements.txt ├── pyproject.toml So basically, under the project ...
Della's user avatar
  • 1,718
1 vote
2 answers
150 views

I'm working on a Ruby on Rails project and practicing Test-Driven Development (TDD) using Minitest. For user authentication (using Devise), I wrote a test to check that a user cannot sign up without ...
0 votes
1 answer
154 views

So i'm building a FastAPI application whose tests are written in Pytest. Because i have some large models, it is unpracticable for me to define different data manually each time i have to query or do ...
1 vote
2 answers
166 views

In the following code, o[0].AccountEnabled has type bool while graphUsers[0].AccountEnabled has type bool?. Without the explicit cast to bool?, I get the following error: 'bool' does not contain a ...
Shuzheng's user avatar
  • 14.6k
1 vote
1 answer
592 views

I'm learning TDD in simple Nuxt.js project. This project is frontend of Laravel API. And what this project does is to implement all Laravel Fortify options. So I'm using external package called nuxt-...
-1 votes
3 answers
216 views

I'm trying to make a class that generates a Fibonacci sequence. My two modules are below, the fibonacci.py module and the test_fibonacci.py module. The first two tests pass but the third one seems to ...
JSO's user avatar
  • 21
0 votes
0 answers
63 views

So I have an integration test /tests/my_test.rs and a unit test in /src/some_module/function.rs. If I create a test helper in /tests/test_helper.rs pub struct TestHelper { } impl TestHelper { fn ...
0 votes
2 answers
136 views

I'm trying to use TDD to build a search view model that debounces before searching. Until recently I would have created a mock debouncer, injected it into my view model and used that to control the ...
ADB's user avatar
  • 729
0 votes
1 answer
46 views

Am using a simple Karate runner to run my features. But the karate html output is generating my scenario thus. Its adding the [1:1:22] as prefix to the Card is not used scenario name. How can i remove ...
2 votes
1 answer
313 views

Im trying to do a small app with TDD. When i run npm test following error occurs: Error: NG0304: 'mat-form-field' is not a known element (used in the 'SignInComponent' component template): If 'mat-...
edgario's user avatar
  • 29
1 vote
2 answers
92 views

I just solved this puzzle using TDD: https://adventofcode.com/2015/day/6 I started with turnOn function and implemented like this(F#): let turnOn (startx, starty) (endx, endy) (grid: bool[,]) = ...
Mehdi.Valizade's user avatar

15 30 50 per page
1
2 3 4 5
...
411

AltStyle によって変換されたページ (->オリジナル) /