# Getting error on unit test setting

**URL:** <https://discuss.ai.google.dev/t/getting-error-on-unit-test-setting/29593>\
**Category:** General Discussion\
**Tags:** tensorflow, contributing\
**Created:** [March 26, 2024, 5:21am UTC](https://discuss.ai.google.dev/t/getting-error-on-unit-test-setting/29593 "2024-03-26T05:21:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Usama\_Baloch](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/usama_baloch/32/7622_2.png) [@Usama\_Baloch](https://discuss.ai.google.dev/u/Usama_Baloch)\
**Post date:** [March 26, 2024, 5:21am UTC](https://discuss.ai.google.dev/t/getting-error-on-unit-test-setting/29593/1 "2024-03-26T05:21:02Z")

</div>

Hi all,

I’m working on contributing to TensorFlow, I followed the `CONTRIBUTING.md` files in the project repo on GitHub of TensorFlow, but I’m getting this error in my code space when I’m running this code: bazel test ${flags} tensorflow/python/kernel\_tests/nn\_ops:softmax\_op\_test

I followed all the steps of this link also: [tensorflow/CONTRIBUTING.md at db34a1447c80c110b70f0fdda9d23faf43d5d6c2 · tensorflow/tensorflow · GitHub](https://github.com/tensorflow/tensorflow/blob/db34a1447c80c110b70f0fdda9d23faf43d5d6c2/CONTRIBUTING.md#general-guidelines-and-philosophy-for-contribution)

Error:  
ERROR: Config value ‘opt’ is not defined in any .rc file

---

<div class="post-metadata">

**Author:** ![Divya\_Sree\_Kayyuri](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/divya_sree_kayyuri/32/29791_2.png) [@Divya\_Sree\_Kayyuri](https://discuss.ai.google.dev/u/Divya_Sree_Kayyuri)\
**Post date:** [September 16, 2025, 7:40am UTC](https://discuss.ai.google.dev/t/getting-error-on-unit-test-setting/29593/3 "2025-09-16T07:40:17Z")

</div>

Hi @Usama_Baloch, The error happens because Bazel is trying to use the `--config=opt` flag, but it can’t find the `opt` configuration defined in the `.bazelrc` file. Make sure that, bazel can properly load the `.bazelrc` file that defines `opt`. Please take a look at the [similar](https://github.com/tensorflow/tensorflow/issues/23613) and let us know if it helps. Thank you!
