On Wednesday, 11 August 2021 at 11:44:42 UTC, Steven
Schveighoffer wrote:
On 8/11/21 5:31 AM, tastyminerals wrote:
[...]
`dub -b unittest` should work (you don't need the extra build
type stuff)
dub test does something funky -- it removes the *whole module*
where your main function is (if
On 8/11/21 5:31 AM, tastyminerals wrote:
I would like to trigger tests in a simple dub project.
```
source/my_script.d
dub.json
```
Here is a dub config:
```json
{
"targetPath": "build",
"targetType": "executable",
"sourcePaths": ["source"],
"name": "my_script",
"buildT
On Wednesday, 11 August 2021 at 09:38:13 UTC, tastyminerals wrote:
Hahaha, I fixed it by renaming the `my_script.d` to `app.d`. Oh
boy.
What you want is the `mainSourceFile` entry. From the dub
documentation, [under "Build Settings"][1]:
Determines the file that contains the main() functi
On Wednesday, 11 August 2021 at 09:31:46 UTC, tastyminerals wrote:
I would like to trigger tests in a simple dub project.
```
source/my_script.d
dub.json
```
Here is a dub config:
```json
{
"targetPath": "build",
"targetType": "executable",
"sourcePaths": ["source"],
I would like to trigger tests in a simple dub project.
```
source/my_script.d
dub.json
```
Here is a dub config:
```json
{
"targetPath": "build",
"targetType": "executable",
"sourcePaths": ["source"],
"name": "my_script",
"buildTypes": {
"relea
On Wednesday, 11 August 2021 at 09:31:46 UTC, tastyminerals wrote:
I would like to trigger tests in a simple dub project.
```
source/my_script.d
dub.json
```
Here is a dub config:
```json
{
"targetPath": "build",
"targetType": "executable",
"sourcePaths": ["source"],