# 在我的 WSL2 系统上运行测试时遇到问题

**URL:** <https://meta.discourse.org/t/having-issues-running-tests-on-my-wsl2-system/358275>\
**Category:** Development\
**Created:** [2025年三月21日 01:35 UTC](https://meta.discourse.org/t/having-issues-running-tests-on-my-wsl2-system/358275 "2025-03-21T01:35:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月21日 02:04 UTC](https://meta.discourse.org/t/having-issues-running-tests-on-my-wsl2-system/358275/2 "2025-03-21T02:04:13Z")

</div>

> [@tgxworld](#):
>
> 你的意思是运行类似这样的东西在本地对你来说会失败吗？

是的，

只有我的测试有效。  
在 WSL2、Ubuntu 22 上进行了测试。

```plaintext
(base) arkshine@HOME:~/discourse$ rspec spec/system/user_activity_bookmarks_spec.rb

Finished in 28.13 seconds (files took 4.64 seconds to load)
4 examples, 3 failures

Failed examples:

rspec ./spec/system/user_activity_bookmarks_spec.rb:36 # User activity bookmarks can filter the list of bookmarks from the URL
rspec ./spec/system/user_activity_bookmarks_spec.rb:43 # User activity bookmarks can filter the list of bookmarks
rspec ./spec/system/user_activity_bookmarks_spec.rb:50 # User activity bookmarks can clear the query

```

由于某些原因，没有注册书签：

 ![The image is a screenshot of a user named bruce0 browsing the Discourse platform on Google Chrome and viewing their bookmarks page. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/b/e/3/be38e853b3fe1b93617591f08c296498124f4490.png)

---

_[View the full topic](https://meta.discourse.org/t/having-issues-running-tests-on-my-wsl2-system/358275)._
