# VSCODE with Robot Code - No tests found in this file

**URL:** <https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002>\
**Category:** Visual Studio Code(ium)\
**Created:** [14 March 2024 11:27 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002 "2024-03-14T11:27:27Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [14 March 2024 11:27 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/1 "2024-03-14T11:27:27Z")

</div>

Hi again,

My second post here,

I’m using RobotCode with VSCode

I’ve got most of the things up and running now, except being able to run and use debug.

When I go inside my .robot file and right click and choose run current file. I get ‘No Test found in this file’

Can someone help me with this?

Are there some set ups that I’ve missed?

BR

MartinX

---

<div class="post-metadata">

**Author:** ![Many](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/many/32/658_2.png) [@Many](https://forum.robotframework.org/u/Many)\
**Post date:** [14 March 2024 11:32 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/2 "2024-03-14T11:32:41Z")

</div>

Open the “Testing” view in VS Code and check your tests are listed there or if some error message is shown.  
Typical errors I saw in the past that caused problems:  
Mixture of “Tasks” and “Tests” within a project.  
Some files in the project which cannot be read/accessed by RobotCode extension.

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/e/e0af2b9ed34e65a9ba7271617c8205c63705acd5.png)

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [14 March 2024 12:15 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/3 "2024-03-14T12:15:31Z")

</div>

Ty Many for your quick response,

Yeah I found some issues with me parsing arguments, so I removed said arguements.

But now when I run, I instead get ‘The test run did not record any output’

BR

MartinX

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [15 March 2024 10:31 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/4 "2024-03-15T10:31:05Z")

</div>

where do you get this message? Can you maybe make a screenshot?

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [15 March 2024 10:51 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/5 "2024-03-15T10:51:44Z")

</div>

I’ve been playing around with it alot lately, so now I’m back with “No Test found in this file”

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/4e213f7825e04b764c98af26f3035101b86a9e3c.png)

My “Testing” view is unconfigured

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/4/41178df4328d29a4d0346e3c1281941fd95426f4.png)

So I’m back on square one for running the test test directly from vs code.  
What do I need to make it work?

Normally when we simply run this TC we use the following:

robot --loglevel DEBUG:DEBUG -A ~/.autotest/mytest/robot\_env.arg --variable ERP:IIP -i TC78755 .

we have this robot\_env.arg file where we have the information to our SUT.

BR

MartinX

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [15 March 2024 11:13 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/6 "2024-03-15T11:13:44Z")

</div>

What exactly are you trying to configure?  
Or rather, what problems do you have exactly?

What does your argument file look like?

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [15 March 2024 11:20 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/7 "2024-03-15T11:20:52Z")

</div>

I gave a short tutorial at RoboCon on how to set up and configure RobotCode. And also some information about the new `robot.toml` file with which you can configure RobotCode, but also the execution on the command line. Maybe this is interesting for you:

> **[RoboCon 2024 Tutorial - Maximizing Efficiency with RobotCode CLI Tools: A...](https://www.youtube.com/live/7Uad_250YuI?si=5kyiywqTo5JnPrES)**
>
> RobotCode is widely known as Visual Studio Code Extension, but it also provides a set of powerful command line tools that greatly enhance the development exp...

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [15 March 2024 12:09 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/8 "2024-03-15T12:09:06Z")

</div>

I want to be able to run and debug my Testcases in vscode.

These are my installed extenssions:

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/d/d6331dbd3dcd99bc54ab33b4cab21958c38a5b0a.png)

What I have working, are intellisense, linting (robocop) and formatting (robotidy).

My argument file is just a bunch of variables needed to connect to my SUT:

![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/1/1193996c55755b90beffcb9c8a9432f0b5cd9dd8.png)

BR

MartinX

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/daniel/32/1492_2.png) [@daniel](https://forum.robotframework.org/u/daniel)\
**Post date:** [15 March 2024 22:10 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/9 "2024-03-15T22:10:08Z")

</div>

Ok, which Vscode/Robotcode settings have you changed?

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [18 March 2024 11:16 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/10 "2024-03-18T11:16:48Z")

</div>

Ty for your response,

This is my setting.json

From .config/Code/User

{  
“files.encoding”: “iso885915”,  
“C\_Cpp.workspaceParsingPriority”: “medium”,  
“update.showReleaseNotes”: false,  
“[robotframework]”: {  
“editor.wordBasedSuggestions”: “off”,  
“editor.semanticHighlighting.enabled”: true,  
“editor.inlayHints.enabled”: “offUnlessPressed”,  
“editor.quickSuggestions”: {  
“strings”: “on”  
},  
“editor.defaultFormatter”: “d-biehl.robotcode”  
},  
“robotcode.robot.env”: {  
“RESOURCEPATH”: “/home/masys/ikea\_sture/common-resources”,  
“IKEARESOURCEPATH”: “/home/masys/ikea\_sture/autotest/ikea-resources”  
},  
“robotcode.robot.paths”: [  
“/home/masys/ikea\_sture/autotest/ikea-tests”  
],  
“robotcode.debug.defaultConfiguration”: {},  
“robotcode.robocop.exclude”: [  
“too-long-test-case”  
],  
“robotcode.robotidy.config”: “/home/masys/ikea\_sture/autotest/pyproject.toml”,  
“workbench.settings.applyToAllProfiles”: [  
“robotcode.robocop.configurations”  
],  
“robotcode.robot.args”: [  
“/home/masys/.autotest/mytest/robot\_env.arg”  
],  
“robotcode.debug.attachPython”: true,  
“robotcode.debug.useExternalDebugpy”: true  
}

I’ve also watched the video you mentioned. It seemed so easy to set up from scratch. But there i no mention how to adapt everything to an existing workspace.

BR

MartinX

---

<div class="post-metadata">

**Author:** ![MartinX](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/martinx/32/4936_2.png) [@MartinX](https://forum.robotframework.org/u/MartinX)\
**Post date:** [19 March 2024 10:59 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/11 "2024-03-19T10:59:18Z")

</div>

I got this weird error in output:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/robotframework1/original/2X/0/07652c057fe95098e414801b16bce2e010b15faa.png)

I do however have Robot Framework installed

---

<div class="post-metadata">

**Author:** ![coopernico46](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@coopernico46](https://forum.robotframework.org/u/coopernico46)\
**Post date:** [22 March 2024 09:41 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/12 "2024-03-22T09:41:38Z")

</div>

Hi @MartinX  
Could it be related with the Workspace. Did you try to create a Workspace folder which have all your robot files and libraries?  
Maybe this could solve the issue.

---

<div class="post-metadata">

**Author:** ![PavelKolar](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/pavelkolar/32/4254_2.png) [@PavelKolar](https://forum.robotframework.org/u/PavelKolar)\
**Post date:** [25 September 2024 07:54 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/13 "2024-09-25T07:54:30Z")

</div>

Hi @MartinX  
try to add full path to Robot Code settings  
**Robotcode \> Robot:Paths**

---

<div class="post-metadata">

**Author:** ![bboxstart](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/bboxstart/32/2490_2.png) [@bboxstart](https://forum.robotframework.org/u/bboxstart)\
**Post date:** [8 July 2025 08:22 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/14 "2025-07-08T08:22:49Z")

</div>

For what it’s worth… for me selecting a different python interpreter solved the issue (command \> RobotCode: select Python environment).

---

<div class="post-metadata">

**Author:** ![ParveenChaudhary](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@ParveenChaudhary](https://forum.robotframework.org/u/ParveenChaudhary)\
**Post date:** [16 April 2026 13:10 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/15 "2026-04-16T13:10:59Z")

</div>

Hello, I was getting the same issue while working on the robot automation test scripts. I tried many ways, at last i was able to run my scripts.

You can also try, I’m using VS code right now. SO for VS code you need, two things Python and RobotCode extensions, right

Check you Python version,

1 ) If python version is 3.9.13, then your Robotcode version should be 1.X.X  
2 ) if python version is 3.10, then your RobotCode version should be greater than 2.X.X

Try this, I hope it will help ! Thanks

---

<div class="post-metadata">

**Author:** ![coopernico46](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@coopernico46](https://forum.robotframework.org/u/coopernico46)\
**Post date:** [17 April 2026 11:14 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/16 "2026-04-17T11:14:20Z")

</div>

@MartinX did you check the .gitignore file?

i had the same (or similar issue) and my problem was that the path of the suite was into the .gitignore file.

---

<div class="post-metadata">

**Author:** ![RobotMeNL](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@RobotMeNL](https://forum.robotframework.org/u/RobotMeNL)\
**Post date:** [19 August 2026 12:30 UTC](https://forum.robotframework.org/t/vscode-with-robot-code-no-tests-found-in-this-file/7002/17 "2026-08-19T12:30:34Z")

</div>

this one worked for me! weirdly enough - why would add to gitignore stop Robocode from running it as test ?!
